home *** CD-ROM | disk | FTP | other *** search
/ Hot Metal Pro 4.0 / Hot Metal Pro 4.0.iso / Special / text / server.txt < prev    next >
Encoding:
Text File  |  1997-11-17  |  9.8 KB  |  288 lines

  1.  
  2. 11. Running a local Web server
  3.  
  4.  
  5.  
  6. The ZBSoft ZBServer Pro personal web server described
  7. in this topic is shipped with HoTMetaL PRO 4.0, but
  8. not with the Evaluation Version that you are now using.
  9. Choose `How To Purchase' in the Help menu for ordering
  10. information.
  11.  
  12. What is a Web server?
  13.  
  14. A Web server is a program that runs on a computer and
  15. waits for requests (usually from other computers over
  16. a network) for Web pages and related files located on
  17. the server computer. When you use a Web client, such
  18. as a Web browser, to click on a link or fill out a form,
  19. the client sends a request for the specific document
  20. or program to the server. The Web server then returns
  21. the page or result. 
  22.  
  23. Web servers and clients communicate using HTTP (HyperText
  24. Transfer Protocol).
  25.  
  26. 11.1. Introducing ZBServer PRO
  27.  
  28. The ZBSoft ZBServer Pro personal web server described
  29. in this topic is shipped with HoTMetaL PRO 4.0, but
  30. not with the Evaluation Version that you are now using.
  31. Choose `How To Purchase' in the Help menu for ordering
  32. information.
  33.  
  34. ZBServer PRO is an Internet server program that runs
  35. on your local PC. While you can use ZBServer PRO to
  36. host your own Web, Gopher, Talk, or FTP site through
  37. a dedicated Internet connection (for example, an ISDN
  38. or T1 connection), you can also use it on a stand-alone
  39. PC to test server-side operations on your Web pages,
  40. such as CGI scripts, image maps, and FTP downloads.
  41.  
  42. ZBServer PRO Limited Edition is a subset of the full
  43. ZBServer PRO Edition from ZBSoft Corp. See their Web
  44. site, http://www.zbserver.com/, for a special upgrade
  45. offer for SoftQuad HoTMetaL PRO 4.0 users.
  46.  
  47. 11.1.1. Running ZBServer PRO
  48.  
  49. The ZBSoft ZBServer Pro personal web server described
  50. in this topic is shipped with HoTMetaL PRO 4.0, but
  51. not with the Evaluation Version that you are now using.
  52. Choose `How To Purchase' in the Help menu for ordering
  53. information.
  54.  
  55. To run ZBServer PRO:
  56.  
  57. * Start ZBServer PRO from the Start menu.
  58.  
  59. * In the status area of the taskbar, click on the ZBServer
  60. PRO icon.
  61.  
  62. * Choose Show ZBServer from the pop-up menu; this brings
  63. up the ZBServer PRO window.
  64.  
  65. 11.1.1.1. The ZBServer PRO interface
  66.  
  67. The ZBServer PRO window has menus, a status bar at the
  68. bottom, and a toolbar and hit counter bar at the top.
  69. You can remove the toolbars, status bar, and hit count
  70. bar by deselecting them in the View menu. 
  71.  
  72. The main window area displays information about the
  73. server status. From the View menu, you can select which
  74. events (for example, HTTP request headers) you want
  75. to display in the main window.
  76.  
  77. 11.2. Configuring ZBServer PRO
  78.  
  79. The ZBSoft ZBServer Pro personal web server described
  80. in this topic is shipped with HoTMetaL PRO 4.0, but
  81. not with the Evaluation Version that you are now using.
  82. Choose `How To Purchase' in the Help menu for ordering
  83. information.
  84.  
  85. While you can use ZBServer PRO to host your own Internet
  86. site on machines with dedicated Internet connections,
  87. the following will explain how to configure ZBServer
  88. PRO on a stand-alone PC as a server for testing your
  89. Web pages. For information about configuring ZBServer
  90. PRO as an Internet-connected server, consult the ZBServer
  91. PRO online help.
  92.  
  93. 11.2.1. ZBServer PRO settings
  94.  
  95. The ZBSoft ZBServer Pro personal web server described
  96. in this topic is shipped with HoTMetaL PRO 4.0, but
  97. not with the Evaluation Version that you are now using.
  98. Choose `How To Purchase' in the Help menu for ordering
  99. information.
  100.  
  101. The following instructions will configure ZBServer PRO
  102. to run on a stand-alone PC. These instructions do not
  103. cover all of the configurable options. See the ZBServer
  104. PRO online help for more information about settings
  105. not explained here. 
  106.  
  107. To configure ZBServer PRO:
  108.  
  109. * Choose Settings... from the Edit menu, or click on
  110. the {Settings} toolbar button; this brings up a tabbed
  111. dialog box.
  112.  
  113. 11.2.1.1. General settings
  114.  
  115. These settings define the host machine. 
  116.  
  117. * Fill in your name and company (if applicable).
  118.  
  119. * Fill in your email address.
  120.  
  121. For a stand-alone PC, you do not need to specify a DNS
  122. Host Name or Host IP.
  123.  
  124. You can use the local machine name of your PC for the
  125. DNS Host Name. If you have a dial-up network connection
  126. for Windows 95, you may have set up your PC with a host
  127. name. To find out what the machine name is:
  128.  
  129. * Go to the Windows 95 Control Panel.
  130.  
  131. * Double-click on the Network icon.
  132.  
  133. * Click on the Identification tab.
  134.  
  135. The machine name will be displayed.
  136.  
  137. 11.2.1.2. Servers settings
  138.  
  139. This tab configures the Web (HTTP) and FTP servers.
  140. The upper portion of the dialog box specifies the default
  141. folders that each server will access on your PC. You
  142. can use the default folders for each server or specify
  143. your own folders; for example, you may just want to
  144. use the folder where your local Web page files are located.
  145.  
  146.  
  147. NOTE: ZBServer Pro will place a dummy root file called
  148. index.htm in the Web server folder. If you use the folder
  149. where your Web pages are already located, it will not
  150. overwrite an existing index.htm file. However, the Web
  151. server looks for index.htm or index.html as the default
  152. root page in that order; if the root page of your existing
  153. Web site is index.html, you must delete the dummy index.htm
  154. file that ZBServer placed in the directory or the server
  155. will serve that file by default.
  156.  
  157. You do not need to change the port settings.
  158.  
  159. The lower portion of the tab contains a list of active
  160. servers. If you have changed the default folder for
  161. the Web server, you should change the settings for httpd
  162. server to match. To do this:
  163.  
  164. * Click on the {HTTP} icon next to the httpd server
  165. listing; this highlights the server.
  166.  
  167. * Click on the [Edit] button; this brings up a dialog
  168. box where you can specify the new directory name.
  169.  
  170. * Click on [OK].
  171.  
  172. * Click on [Apply] to complete the Servers tab. 
  173.  
  174. You will be prompted to restart ZBServer PRO to effect
  175. the changes. You can wait until you have finished configuring
  176. the server.
  177.  
  178. 11.2.1.3. CGI settings
  179.  
  180. Use the CGI settings to specify the path of a Perl Interpreter
  181. and the folder containing your Perl library files. Windows
  182. versions of Perl are available for download from the
  183. Internet. 
  184.  
  185. * In the Perl Compiler text box, type the path to your
  186. Perl Interpreter; for example, c:\perl\perl.exe.
  187.  
  188. * In the Perl library text box, type the folder that
  189. contains your Perl library files; for example, c:\perl.
  190.  
  191. * Check CGI Debug Mode if you want to debug your CGI
  192. scripts; if this is checked, ZBServer PRO will keep
  193. old copies of the CGI and Perl input, content and output
  194. files. It will also send the CGI Debug message to CGI
  195. programs. This is useful when you are programming your
  196. own scripts or trying to get new CGI scripts to run.
  197.  
  198. * You can specify the GMT (Greenwich Mean Time) information
  199. to CGI programs that request it. This should be a value
  200. in seconds to be added to GMT to reach local time. 
  201.  
  202. 11.2.1.4. Shared folders settings
  203.  
  204. The Shared Folders tab sets access restrictions to any
  205. folder on any drive (local or remote) mounted on your
  206. computer. You can also use this dialog to set more detailed
  207. levels of permissions for your users and groups. 
  208.  
  209. The Paths list shows all folders that ZBServer PRO is
  210. configured to share. Click on a path to edit its settings.
  211. Each line shows the URL Path, DOS Path, Owner field,
  212. Access field and the Allows fields. The Allows fields
  213. are abbreviated as C (for Allow CGI), M (for Allow Messages)
  214. and D (for Allow DIR). These settings are important
  215. if you are using ZBServer PRO as server on a network.
  216. For more information, see the ZBServer PRO online help
  217. for this tab.
  218.  
  219. 11.2.1.5. Miscellaneous settings
  220.  
  221. The Misc tab sets the following options that are applicable
  222. to stand-alone PCs: 
  223.  
  224. * Temp Directory - The location of the temporary file
  225. folder. Cache and other system information will be temporarily
  226. stored in this folder when necessary.
  227.  
  228. * Cache DNS Hits - Speeds up DNS lookups by caching
  229. the last few looked up hostnames.
  230.  
  231. * Start as 95 Service - Adds an entry to the Windows
  232. 95 registry so that ZBServer PRO will startup automatically
  233. before the normal login screens.
  234.  
  235. * Minimize after start - ZBServer PRO will minimize
  236. after starting up.
  237.  
  238. * Hide after start - ZBServer PRO will hide after starting
  239. up. If ZBServer PRO is hidden, you can access it from
  240. the Status Area of the taskbar.
  241.  
  242. * Ask before quitting - ZBServer PRO will prompt you
  243. before exiting the program.
  244.  
  245. * Beep on POSTs - ZBServer PRO will beep whenever it
  246. gets a POST command; for example, when a message is
  247. posted to the message board or when a CGI program is
  248. run.
  249.  
  250. * Send Buffer Size - How much data ZBServer PRO sends
  251. at one time.
  252.  
  253. * Read Timeouts - How long (in seconds) before ZBServer
  254. PRO closes a connection.
  255.  
  256.  
  257.  
  258. To complete the configuration of ZBServer PRO, you will
  259. have to close it down and restart it.
  260.  
  261. 11.3. Serving a page
  262.  
  263. The ZBSoft ZBServer Pro personal web server described
  264. in this topic is shipped with HoTMetaL PRO 4.0, but
  265. not with the Evaluation Version that you are now using.
  266. Choose `How To Purchase' in the Help menu for ordering
  267. information.
  268.  
  269. Once you have configured ZBServer PRO, you can access
  270. your local Web pages just as if you were surfing the
  271. Web. Your Web pages should be located in the folder
  272. that you specified as the default in the Servers tab
  273. of the Settings dialog box. In order to surf to your
  274. home page, you simply use `localhost' as the domain
  275. name; ZBServer PRO will automatically serve any file
  276. named index.htm or index.html.
  277.  
  278. For example, if the default folder for the server is
  279. homepage, and the folder contains a file called index.html,
  280. you would type the following in your Web browser:
  281.  
  282. http://localhost
  283.  
  284. ZBServer PRO would then serve the index.html page. This
  285. is typically the filename that Internet service providers
  286. specify for the root page of your Web site.
  287.  
  288.